﻿using DAL.Webmonitor;
using DEL.Webmonitor;
using IBLL.Webmonitor;
using System.Collections.Generic;
using System.Linq;

namespace BLL.Webmonitor
{
    public class InfoHitService : BaseService<InfoHit>, IInfoHitService
    { 
        public override void SetCurrentRepository()
        {           
            CurrentRepository = DALFactory.SetInfoHitRepository();
        }

        public IEnumerable<string> GetAllUrl()
        {
            InfoHitRepository infoHitRepository = new InfoHitRepository();
            return infoHitRepository.GetAllUrl();
        }

        public static int AddEntity1(InfoHit entity)
        {
            return CurrentRepository.AddEntity(entity);
        }
               
    }
}
